<div class="modal fade in ip-box" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" data-backdrop="static" aria-hidden="true"
id="details">
<div class="modal-dialog modal-lg" role="document" style="margin:254px auto;">
  <div class="modal-content">
    <div class="modal-header">
      <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
      <h4 class="modal-title" id="myModalLabel">数据库管理 — 详情</h4>
    </div>
    <div class="modal-body modal-body680 database-model">
      <form #newlyAddedForm="ngForm">
        <div class="form-group col-sm-6">
          <label class="col-xs-12 col-sm-2 control-label text-right">表名：</label>
          <div class="col-xs-12 col-sm-10">
            <p class="details-p">{{details?.tables.tableName}}</p>
          </div>
        </div>
        <div class="form-group height-auto col-sm-6">
          <label class="col-xs-12 col-sm-2 control-label text-right">注释：</label>
          <div class="col-xs-12 col-sm-10">
            <!-- <textarea rows="5" type="text" name="table_desc" class="form-control" ngModel placeholder="注释">
            </textarea> -->
            <p class="details-p">{{details?.tables.tableDesc}}</p>
          </div>
        </div>
        <div class="col-sm-12 form-group">
          <div class="l-table">
            <div class="table-header">
              <table class="table table-bordered table-header game-table">
                <thead>
                  <tr>
                    <td class="w5 text-center">序号</td>
                    <td class="w20 text-center">列名</td>
                    <td class="w15 text-center">类型</td>
                    <td class="w15 text-center">长度</td>
                    <td class="w15 text-center">小数点</td>
                    <td class="w15 text-center">是否为null</td>
                    <td class="w15 text-center">是否主键</td>
                    <!-- <td class="w10 text-center">排序值</td> -->
                    <!-- <td class="w10 text-center">默认</td> -->
                  </tr>
                </thead>
              </table>
            </div>
            <div class="table-body">
              <table class="table table-bordered table-header game-table">
                <tbody>
                  <tr *ngFor="let val of details?.tablesColRelations; let  i = index;" [ngClass]="{'active':i%2!=0}">
                    <td class="w5 text-center">{{i+1}}</td>
                    <td class="w20 text-center">{{val.columeName}}</td>
                    <td class="w15 text-center">{{val.columeType}}</td>
                    <td class="w15 text-center">{{val.columeLength}}</td>
                    <td class="w15 text-center">{{val.columeXsd}}</td>
                    <td class="w15 text-center">
                      <strong class="text-success" *ngIf="val.columeNotNull == 1">是</strong>
                      <strong class="text-danger" *ngIf="val.columeNotNull == 0">否</strong>
                    </td>
                    <td class="w15 text-center">
                      <strong class="text-success" *ngIf="val.primaryKey == 1">是</strong>
                      <strong class="text-danger" *ngIf="val.primaryKey == 0">否</strong>
                    </td>
                    <!-- <td class="w10 text-center">{{val.columeOrder}}</td> -->
                    <!-- <td class="w10 text-center">{{val.primaryKey}}</td> -->
                  </tr>
                </tbody>
              </table>
            </div>
          </div>
        </div>
        <div class="line-public database-line-public"></div>
        <div class="col-sm-12">
          <div class="modal-footer">
            <button type="button" class="btn btn-fff" data-dismiss="modal">关闭</button>
          </div>
        </div>
      </form>
      
    </div>
    
  </div>
</div>
</div>
